/*
 * Copyright 2008 the Thcik4 community.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
 * either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

package net.thick4.test.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * テスト時に利用するテストFixturesの名前を指定します。
 */
@Documented
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
public @interface Fixtures {
	
	/**
	 * Fixturesの名前の配列です。
	 * 
	 * <p>
	 * JUnit4.4と{@link net.thick4.test.FixturesTestCase}と組み合わせて利用します。
	 * テスト開始前にデータベースにロードするデータを指定します。
	 * </p>
	 * 
	 * <dl>
	 * <dt>１つ指定する場合</dt>
	 * <dd>
	 * <pre>
	 * @Fixtures("Employee")
	 * public class EmployeeDaoTest extend FixutresTestCase {
	 * }
	 * </pre>
	 * </dd>
	 * 
	 * <dt>複数指定する場合</dt>
	 * <dd>
	 * <pre>
	 * @Fixtures({"Employee", "Department"})
	 * public class EmployeeDaoTest extend FixutresTestCase {
	 * }
	 * </pre>
	 * </dd>
	 * </dl>
	 * 
	 * @return Fixtures名の配列
	 */
	String[] value();
	
}
